package homework_03;

import java.util.Scanner;

/**
 * 输入一个0～100的分数，如果不是0～100之间，打印分数无效，根据分数等级打印A,B,C,D,E。
 */
public class Home_09 {
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        System.out.println("请输入成绩：");
        int a=input.nextInt();
        switch (a/10){
            case 10:
            case 9:
                System.out.println("A");
                break;
            case 8:
                System.out.println("B");
                break;
            case 7:
                System.out.println("C");
                break;
            case 6:
                System.out.println("D");
                break;
            case 5:
            case 4:
            case 3:
            case 2:
            case 1:
            case 0:
                System.out.println("E");
                break;
            default:
                System.out.println("分数无效");
        }
    }
}
